Warn about docstrings with control characters
authorMattias Engdegård <mattiase@acm.org>
Fri, 23 Feb 2024 12:57:04 +0000 (13:57 +0100)
committerMattias Engdegård <mattiase@acm.org>
Fri, 23 Feb 2024 14:16:30 +0000 (15:16 +0100)
commit90d3b3408e404aba383302c3147d3ca614619986
tree340e371653c9f0848aa915522f56d2b3fd66e215
parenta8f167547bc15eacaf5fbc07c1e75f603e70862d
Warn about docstrings with control characters

It is easy to include control chars in doc strings by mistake, and the
result is often an unreadable mess.

* lisp/emacs-lisp/bytecomp.el (byte-compile-warning-types)
(byte-compile-warnings, byte-compile--docstring-style-warn):
Add `docstrings-control-chars` warning.
* etc/NEWS: Announce.
etc/NEWS
lisp/emacs-lisp/bytecomp.el